package com.witdata.framework.service.docker;

import com.witdata.common.domain.docker.Container;
import com.witdata.common.domain.dto.InstanceContainerDto;

import java.util.List;

public interface ContainerService {

    Container createContainer(Long instanceId, String image);

    Container createContainer(Long instanceId, String image, String containerName);

    String createContainer(InstanceContainerDto instanceContainerDto);

    void startContainer(InstanceContainerDto instanceContainerDto);

    List<Container> getContainerList(Long instanceId);

    void removeContainer(InstanceContainerDto instanceContainerDto);

    void stopContainer(InstanceContainerDto instanceContainerDto);

    Container getContainerStatus(Long instanceId, String containerId);
}
